package org.sundatagroup.aurora;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.embedded.ConfigurableEmbeddedServletContainer;//
import org.springframework.boot.context.embedded.EmbeddedServletContainerCustomizer;//
import org.springframework.context.annotation.Bean;//
import org.sundatagroup.aurora.StartApplication;
import org.sundatagroup.aurora.Static;

/**
 * <p>Test 域的启动位置
 * <p>这里将启动 (编译和运行) test 域和 main 域中的所有文件.
 * </p>
 * @author Zdream
 * @date 2018-04-13
 * @version 0.1
 */
@SpringBootApplication
public class StartTestApplication {
	public static void main(String[] args) {
		Static.load();
		SpringApplication.run(StartApplication.class, args);
	}

	@Bean
	public EmbeddedServletContainerCustomizer containerCustomizer(){
		return new EmbeddedServletContainerCustomizer() {
			@Override
			public void customize(ConfigurableEmbeddedServletContainer container) {
				container.setSessionTimeout(60);//单位为S
			}
		};
	}
}


